export const ADD_COMMENT = 'ADD_COMMENT'
export const DELETE_COMMENT = 'DELETE_COMMENT'


export const addComment = (comments)=>{
    return {
        type:ADD_COMMENT,
        comments
    }
}

export const deleteComment = (index)=>{
    return {
        type:DELETE_COMMENT,
        index
    }
}